<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/" method="post">
    {{ user.as_p }}
    <input type="submit" value="登录"/>
    {% csrf_token %}
</form>
<p>
    {{ dir_user }}
</p>
</body>
</html>